/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package grundlagen;

/**
 *
 * @author dgreipl
 */
public class HalloWelt {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        System.out.println("Hallo meine schöne Welt");
        int i, j;
        i = 1; 
        j = 0;
        if (i == 0) {
            System.out.println("I ist null");
        } else {
            System.out.println("I ist nicht null");
        }

        while (i < 10) {
            i = i + 1;
            System.out.println(Math.random());
            System.out.println("");
        }

        int c = 10;

        j = 2;
        try {
            System.out.println("Vor der Division");
            c = i / j;
            System.out.println("Nach der Division");
        } catch (Exception e){
            System.out.println("Fehler : " + e );
        }
        System.out.println(c);
    }
}
